package com.haiheng.moudule_visualinventoryrobot.dialog

import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.haiheng.moudule_visualinventoryrobot.R
import com.haiheng.moudule_visualinventoryrobot.databinding.DialogMultiCamerasBinding
import com.haiheng.moudule_visualinventoryrobot.fragment.CustomMultiCameraFragment
import com.haiheng.moudule_visualinventoryrobot.fragment.DemoMultiCameraFragment
import com.jiangdg.ausbc.base.BaseBottomDialog

/**
 *
 * @Des:
 * @Author: hwz
 * @Date:2024/3/6 0006
 * @Version: 1.0
 */
class MultiCameraDialog :BaseBottomDialog(){
    private lateinit var mViewBinding: DialogMultiCamerasBinding

    override fun initView() {
        mViewBinding.multiCameraDialogHide.setOnClickListener {
            hide()
        }
        childFragmentManager.beginTransaction()
            .add(R.id.multi_camera_dialog_container, DemoMultiCameraFragment())
            .commitAllowingStateLoss()
    }

    override fun initData() {
        setTopOffset(100)
    }

    override fun getRootView(inflater: LayoutInflater, container: ViewGroup?): View? {
        mViewBinding = DialogMultiCamerasBinding.inflate(inflater, container, false)
        return mViewBinding.root
    }
}